/**
 * 
 */
 
var releaseNoteObjid,releaseNote;
function myInitDo(e){
    releaseNode = e.currentTarget;
    releaseNoteObjid = releaseNode.id;
    console.log('release objid:'+releaseNoteObjid);
}
   
function fnew(){
    window.location.href="editor.do?objId=-1";
}
function fedit(){
    window.location.href="editor.do?objId="+releaseNoteObjid;
}
function fdelete(){
    $.ajax({
        method:'POST',
        url:"releaeNote/deleteMDReleaseNote.do",
        data:{
            objId:releaseNoteObjid
        },
        success:function(rst){
            if(rst.success){
                alert('release note has been deleted.');
            }else{
                alert('Error,look server output.');
            }
            window.location.href="adminMain.do";
        }
    })
}